<% if @photos.length > 0 -%>
  <% photo_wrapper @aggregation, @page do -%>
    <%= render(:partial => "image", :collection => @photos) %>
    <div class="more-photos">
      <%=link_to 'Get ' + @per_page.to_s + ' More Pictures...', {:action => params[:action], :page => @next_page}, {:target => '_replace', :title => 'Get ' + @per_page.to_s + ' more pictures'} %>
    </div>
  <% end -%>
<% else -%>
  <div class="more-photos">Sorry, you have seen all the pictures we have</div>
<% end -%>